<template>
    <div>
        <div id="box">

        </div>
    </div>
</template>
<script>
import * as echarts from 'echarts';
import {eachartsReport} from '@/http/Reporys'
export default {
    data() {
        return {
            option:{

            }
        }
    },
    methods: {
      async  getReport(){
          let res = await eachartsReport()
          console.log(res);
          this.option=res.data
           var myChart = echarts.init(document.getElementById('box'));
            myChart.setOption(this.option);
        }
    },
    mounted() {
        this.getReport()
    }
}
</script>
<style lang="scss" scoped>
#box{
    width: 500px;
    height: 500px;
}
</style>